package IOException;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;

public class FileReaderExample {
	public static void main(String[] args) throws IOException {
		Charset.forName("UTF-8");
		FileReader fr = new FileReader("file2.txt");
		
		BufferedReader br = new BufferedReader(fr);
		
		String s;
		
		//trong khi con noi dung de doc
		while((s = br.readLine()) != null) {
			System.out.print(s);
		}
		fr.close();
	}

}
